import socket
import time


def send():
    # 创建一个udp套件字
    udp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    # 使用套件字收发数据
    i = 0
    while True:

        send_data ="1560:1505:1520:1520:100:090"
        # 目标IP 和端口，元组类型
        ip_adders = ('192.168.137.2', 8008)
        udp_socket.sendto(send_data.encode('utf-8'), ip_adders)
        # 关闭套件字
        print(send_data)
    udp_socket.close()


if __name__ == '__main__':
    send()
